﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WorkStation.Frameworks.EasyBus.Attributes
{
    /// <summary>
    /// 订阅消息标记（Name，RouteKey，BusName，Mq必填参数，Description选填）
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
    public class SubscribeAttribute : Attribute
    {
        /// <summary>
        /// 订阅名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 订阅消息路由关键字
        /// </summary>
        public string RouteKey { get; set; }

        /// <summary>
        /// 订阅的消息总线名称
        /// </summary>
        public string BusName { get; set; }

        /// <summary>
        /// 消息队列地址
        /// </summary>
        public string Mq { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; }
    }
}
